$def with (name,myTradelog,info)

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<title>虚拟交易市场-我的交易记录</title>

<div class='content'>
<div class='top'>
<div class='navi'><a href='/orderbook'>交易系统</a></div><div class='navi'>交流区</div><div class='navi'>排行榜</div><div class='navi'><a href='/welcome'>公告区</a></div>  	
</div>
<div class='sidebar'>
	<h3 style='text-align:center'>当前帐号：$name</h3>
	<fieldset>
		<legend style="color:white">我的信息:</legend>
		<div style='text-align:left'>股票数：</div><div style='text-align:right'>$:int(info[1]) </div>
		<div style='text-align:left'>现金数：</div><div style='text-align:right'>$info[0] </div>
		<div style='margin-top:15px'><a href='/mylog'>我的交易情况</a></div>
	
	</fieldset>
	
	<fieldset>
	<legend style="color:white">进行操作:</legend>
		<a href='/orderbook'>查看所有订单</a><br />
		<a href='/neworder'>前往交易大厅</a><br />
		<a href='/price'>历史成交情况</a>
	</fieldset>
	
	<fieldset>
	<legend style="color:white">我的订单:</legend>
	$if info[2]:
		$if info[2][2] == 1:
			<div style='text-align:left'>订单性质：</div><div style='text-align:right'>卖单</div>
		$else:
			<div style='text-align:left'>订单性质：</div><div style='text-align:right'>买单</div>
		<div style='text-align:left'>价格：</div><div style='text-align:right'>$info[2][0]</div>
		<div style='text-align:left'>订单量：</div><div style='text-align:right'>$info[2][1]</div>
		<div style='margin-top:15px;text-align:center'><a href='/abort'>取消我的订单</a></div>
	$else:
		当前无订单
	</fieldset>
	
	<fieldset>
	<legend style="color:white">账户操作:</legend>
		<a href='/login'>更换账户</a><br />
		<a href='mailto:an@naich.org'>联系充值</a>
	</fieldset>
</div>


<div class='frame'>
<h3>我的交易记录</h3>
<table border=1>
<tr><th>类型</th><th>价格</th><th>成交量</th><th>成交时间</th></tr>
	$for log in myTradelog:
		<tr>
			$if log[1] > 0:
				<td>买入</td>
			$else:
				<td>卖出</td>
			$for c in log[:-1]:
				<td>$:abs(c)</td>
			<td>$log[2]</td>	
		</tr>
</table>
</div>

</div>
